class MobileController < ApplicationController
  
  before_filter  :authorize
  
  layout :determine_layout
  
  def index
    session[:is_mobile] = true
  end
  
  def switch
    if session[:is_mobile]
      session[:is_mobile] = false
      redirect_to({:controller => 'fabrics', :action => "index" })
    else
      session[:is_mobile] = true
      redirect_to({:action => "index" })
    end
  end
    
end
